package com.wjerp.tplus.server.api.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author lishuailei
 */
@ApiModel("下拉框统一返回对象")
public class ValueEnumResponse {

    @ApiModelProperty("显示字段")
    private String label;

    @ApiModelProperty("关联值")
    private Object value;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }


    public ValueEnumResponse() {
    }

    public ValueEnumResponse(String label, Object value) {
        this.label = label;
        this.value = value;
    }

    @Override
    public String toString() {
        return "ValueEnumResponse{" +
                "label='" + label + '\'' +
                ", value=" + value +
                '}';
    }
}
